package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.vo.album.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;

import java.util.List;
import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {

    void savaTrackInfo(TrackInfoVo trackInfoVo,Long userId);

    Page<TrackListVo> getUserTrackByPage(Page<TrackListVo> pageInfo, TrackInfoQuery trackInfoQuery);

    void updateTrackInfo(Long id, TrackInfoVo trackInfoVo);


    Page<AlbumTrackListVo> findAlbumTrackPage(Page pageInfo, Long albumId, Long userId);

    void updateAlbumStat(TrackStatMqVo trackStatMqVo);

    TrackStatVo getTrackStatVo(Long trackId);

    List<Map<String, Object>> getUserWaitBuyTrackPayList(Long userId, Long trackId);

    List<TrackInfo> getWaitBuyTrackInfoList(Long userId, Long trackId, int trackCount);
}
